﻿using DataBaseProject;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataBaseProject
{
    class DbProjectContext : DbContext
    {
        public DbProjectContext()
            : base("DefaultConnection")
        {
        }

        public static void runMigrations()
        {
            Database.SetInitializer<DbProjectContext>(new MigrateDatabaseToLatestVersion<DbProjectContext, DataBaseProject.Migrations.Configuration>());
        }

        public DbSet<UserModel> Users { get; set; }
    }
}
